package common;

import java.io.Serializable;

/**
 * This class represents a structure of a file as it appears in the database.
 */

public class FileUpload implements Serializable {
	
	private int FileID;
	private int RequestID;
	private String Filename;
	private int Size;
	private byte[] Filedata=null;
	private String Extension;
	
	public FileUpload()
	{
		//
	}
	
	public FileUpload(String Filename, int Size, byte[] Filedata, String Extension)
	{
		this.Filename=Filename;
		this.Size=Size;
		this.Filedata=Filedata;
		this.Extension=Extension;
	}
	
	/**
	 * Get FiledID
	 */
	public int getFileID() {
		return FileID;
	}
	/**
	 * Set FiledID
	 */
	public void setFileID(int FileID) {
		this.FileID = FileID;
	}
	/**
	 * Get RequestID
	 */
	public int getRequestID() {
		return RequestID;
	}
	/**
	 * Set RequestID
	 */
	public void setRequestID(int RequestID) {
		this.RequestID = RequestID;
	}
	/**
	 * Get Filename
	 */
	public String getFilename() {
		return Filename;
	}
	/**
	 * Set Filename
	 */
	public void setFilename(String Filename) {
		this.Filename = Filename;
	}
	/**
	 * Get file size
	 */
	public int getSize() {
		return Size;
	}
	/**
	 * Set file size
	 */
	public void setSize(int Size) {
		this.Size = Size;
	}
	/**
	 * Get file data
	 */
	public byte[] getFiledata() {
		return Filedata;
	}
	/**
	 * Set file data
	 */
	public void setFiledata(byte[] Filedata) {
		this.Filedata = Filedata;
	}
	/**
	 * Get file extension
	 */
	public String getExtension() {
		return Extension;
	}
	/**
	 * Set file extension
	 */
	public void setExtension(String Extension) {
		this.Extension = Extension;
	}

}
